﻿using _05_坦克大战.Properties;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Resources;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _05_坦克大战
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
            //this.StartPosition = FormStartPosition.Manual;
            //this.Location = new Point(1440,500);

        }
        //
        private void Form1_Paint(object sender, PaintEventArgs e)
        {

            Graphics g = this.CreateGraphics();

            #region 怎么绘制线和字符串
            ////Color c = Color.FromArgb();
            //Pen p = new Pen(Color.Black);

            //g.DrawLine(p, new Point(50, 50), new Point(100, 100));

            //g.DrawString("www.strange_programmer.blog.com",
            //    new Font("楷体", 20),
            //    new SolidBrush(Color.Red),
            //    new Point(100, 100));
            #endregion

            Image image = Resources.Boss;
            Bitmap bm = Resources.Star1;

            bm.MakeTransparent(Color.Black);

            g.DrawImage(bm, 150, 150);

            g.DrawImage(image, 200, 200);
        }
    }
}
